import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 查询资金列表
  getList: (query) => api.post(`${config.interfaces.type1}fundAccount/list`, query),
  // 资金调拨：一个减 一个加
  transfer: (query) => api.post(`${config.interfaces.type1}fundAccount/transfer`, query),
  // 资金操作
  operation: (query) => api.post(`${config.interfaces.type1}fundAccount/operation`, query),
  // 批量查询
  queryDictByKeys: (query) => api.post(`${config.interfaces.type1}pmsDictionary/queryDictByKeys`, query),
  // 组合权限查询
  findPermission: (query) => api.get(`${config.interfaces.type5}portfolio-server/portfolioInfo/find-portfolio-permission/${query}`, {}),
  // 保证金管理
  operationBzj: (query) => api.post(`${config.interfaces.type1}fundAccount/operationBzj`, query),
};
